package com.ruiyu.IM;

import android.content.Intent;
import android.os.SystemClock;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class SplashActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        new Thread(){
            @Override
            public void run() {
                super.run();

                //执行版本更新,初始化数据
                SystemClock.sleep(2000);
                Intent intent = new Intent(SplashActivity.this,LoginActivity.class);
                startActivity(intent);

                finish();
            }
        }.start();
    }
}
